<template>
  <div class="breadcrumb">
    <div class="breadcrumbBanner relative" v-if="isShowBanner">
      <img :src="bannerData.bannerImg" alt="">
      <div class="bannerTitle">
        <p>{{bannerData.title.name}}</p>
        <p>{{bannerData.title.english}}</p>
      </div>
    </div>
    <div class="breadcrumbNav">
      <div class="headerTopMain">
        <p v-for="(breadcrumbItem,breadcrumbIndex) in breadcrumbData">
          <router-link :to='{name:breadcrumbItem.routeName,query:breadcrumbItem.query}' :class="{bold:breadcrumbIndex==(breadcrumbData.length-1)}">{{breadcrumbItem.name}}</router-link><span v-if="breadcrumbIndex!=(breadcrumbData.length-1)">></span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
  import './index.scss'
  import {mapState} from 'vuex'
  export default {
    props:{
      isShowBanner:'',
      bannerData:''
    },
    data() {
      return {}
    },
    computed: {
      ...mapState({
        breadcrumbData: state => state.mutations.breadcrumbData,
      })
    },
    mounted() {
    },
    methods: {},
    watch:{
    },
    components: {}
  }
</script>

<style lang="css" rel="styleheet/css" scoped>

</style>
